import http from "./http";
// 手机号验证码登录
export function login(data = {}) {
    return http.post("/mobileLogin", data);
}// 手机号验证码登录
export function MiniPhoneLogin(data = {}) {
    return http.post("/getWeChatUserPhone", data);
}

// 手机号密码登录
export function phoneLogin(data = {}) {
    return http.post("/login", data);
}

// 获取短信验证码
export function getSMS(data = {}) {
    return http.post("/sendSms", data);
}

export function getUserInfo(data = {}) {
    return http.get("/getUserInfo", {
        params: data
    });
}